<?php

namespace App\Http\Controllers\Backend;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Flaw\Vuls;
use App\Http\Controllers\Traits\Base;

class BackstageController extends Controller
{
    use Base;
    //
    public function main(){
        return view('backend.backstage');
    }
    public function index(){
        if(access()->allow('chartsanalysis-index')){
            return redirect('admin/groupChartsAnalysis');
        }elseif (access()->allow('chartsanalysis-subblock')){
            return redirect('admin/subBlockStatistics');
        }elseif(access()->allow('chartsanalysis-company')){
            return redirect('admin/companyStatistics');
        }else{
            return view('backend.welcome');
        }
    }


}
